/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package SYSGEST;

import sysgest.conexao.HibernateUtil;
import org.hibernate.Session;

/**
 *
 * @author AELSON
 */
public class NewClass {

    public static void main(String[] args) {
        Session sessao = null;
        try {
            sessao = HibernateUtil.getSessionFactory().openSession();
            System.out.println("Conectou");
        } finally {
            sessao.clear();

        }
    }
}
